package com.woniu.outlet.po;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotNull;
import java.util.Date;
@Data
@ApiModel("送货表")
@AllArgsConstructor
@NoArgsConstructor
public class OrderDeliver {
    @ApiModelProperty(value = "送货id")
    private Long id;
    @ApiModelProperty(value = "订单id")
    private Long orderId;

    @ApiModelProperty(value = "邮箱")
    @NotNull(message = "邮箱不能为空")
    @Email(message = "必须是邮箱格式")
    private String email;

    @ApiModelProperty(value = "订单编号")
    @NotNull(message = "订单编号不能为空")
    private String orderNo;

    @ApiModelProperty(value = "地址")
    @NotNull(message = "地址不能为空")
    private String address;

    @ApiModelProperty(value = "配送方式")
    @NotNull(message = "配送方式不能为空")
    private String shippingMethod;

    @ApiModelProperty(value = "客户id")
    @NotNull(message = "客户id不能为空")
    private Long customerId;

    @ApiModelProperty(value = "发货时间")
    private Date deliveryDate;
    @ApiModelProperty(value = "到货时间")
    private Date arrivalDate;

    @ApiModelProperty(value = "备用字段1",hidden = true)
    private String spare1;
    @ApiModelProperty(value = "备用字段2",hidden = true)
    private String spare2;
    @ApiModelProperty(value = "备用字段3",hidden = true)
    private String spare3;


}